<?php if ($this->_var['user_info']): ?>
<div class="right">
<a href="user.php">
<?php echo $this->_var['lang']['hello']; ?>，<?php echo $this->_var['user_info']['username']; ?>, <?php echo $this->_var['lang']['welcome_return']; ?>！</a>

 <a href="user.php?act=logout"><?php echo $this->_var['lang']['user_logout']; ?></a>

</div>
<?php else: ?>
 
<div class="right"><a href="user.php" style="border: none;">您好，欢迎光临艺晨画材送！请<span class="red">登陆</span></a><a href="user.php?act=register" style="border: none;">注册</a></div>
<?php endif; ?>